package com.hqyj.freemovie.front.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hqyj.freemovie.front.domain.Users;

//用户的业务逻辑方法
public interface UsersService extends IService<Users> {

    //用户注册
    public boolean reg(Users u) throws Exception;

    //用户登录
    public Users login(String identify,String password);


    //根据用户的ID查询用户资料
    public Users queryUserByUid(Integer uid);

    //更新用户资料
    public boolean updateUser(Users u) throws Exception;


    //删除用户资料
    public boolean removeUser(Integer uid) throws Exception;


    public boolean checkMobileIsReg(String mobile);


}
